Skip to main content

StringTrim

StringTrim["string"] trims whitespace from the beginning and end of "string".

StringTrim["string",patt] trims substrings matching patt from the beginning and end.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.